#include<stdio.h>
int main()
{
 int a,b,c,year,i;
 for(year=1950;year<2022;year++){
  if((year%4==0&&year%100!=0)||year%400==0) 
  i++;
 }
 a=i*366;
 b=(2022-1949-i)*365;
 c=31*2+30;
 printf("%d",a+b+c);
 return 0; 
}
